<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>后台管理--<s:property value="#application.website.websiteName"/></title>
	<meta http-equiv="pragma" content="no-cache">
	<link rel="stylesheet" type="text/css" href="js/tools/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="admin/css/admin.css">
	<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/tools/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="admin/js/adminindex.js"></script>
  </head>
  <body class="easyui-layout">

    <div  region="north" border="true"  style="overflow: hidden; height: 30px;
        background: url(images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
        <span style="float:right; padding-right:20px;" class="head">欢迎 <s:property value="#session.user.email"/>进入后台管理
         <a href="/hipresent"  style="color: #FFFFFF;">返回首页</a> 
         <a href="javascript:void(0);" onclick="$('#dialog').dialog('open');" id="editpass" style="color: #FFFFFF;">修改密码</a> 
         <a href="user!loginOut.action" id="loginOut" style="color: #FFFFFF;">安全退出</a></span>   
        <span style="padding-left:10px; font-size: 16px; "><img src="images/blocks.gif" width="20" height="20" align="absmiddle" /> 网站后台管理</span>
    </div>
    <div region="west"  title="菜单" style="width:250px;">
	   <div class="easyui-accordion" style="height:614px;">
			<div title="网站设置" selected="true" style="overflow:auto;padding:10px;">
			      <ul class="menulist">
						<li><div><a href="websiteConfiger!websiteConfig.action" target="websiteConfig">网站信息设置</a></div></li>
						<li><div><a href="admin/configer/websitecolumn.jsp" target="websitecolumn">网站栏目管理</a></div></li>
						<li><div><a href="websiteConfiger!adList.action" target="ad">广告展示</a></div></li>
						<li><div><a href="admin/user/usermanager.jsp" target="usermanager">用户管理</a></div></li>
					</ul>
			</div>
			<s:iterator value="#application.columns">
			  <s:if test="%{isList==2}">
			       <div title="<s:property value="name"/>"  style="overflow:auto;padding:10px;">
			         <ul class="menulist">
						<li><div><a href="admin/business/addBusiness.jsp" target="addbusiness">添加商户的信息</a></div></li>
						<li><div><a href="admin/business/businessmanager.jsp" target="singlePageManager">管理商户的信息</a></div></li>
					</ul>
			      </div> 
			  </s:if>
			  <s:elseif test="%{isList==1}">
			     <div title="<s:property value="name"/>"  style="overflow:auto;padding:10px;">
			         <ul class="menulist">
						<li><div><a href="admin/load/addLoad.jsp?singlePage.columnId=<s:property value="id"/>" target="addload">添加路的信息</a></div></li>
						<li><div><a href="admin/load/loadlist.jsp?singlePage.columnId=<s:property value="id"/>" target="singlePageManager">管理路的信息</a></div></li>
					</ul>
			      </div>
			  </s:elseif>
			</s:iterator>
		</div>
    </div>
    <div region="center" id="mainPanle" >
       <div id="tabs" class="easyui-tabs"  fit="true" border="false" ></div>
    </div>
    <div id="dialog" title="密码修改" closed="true" style="width:400px;height:250px;text-align:center;padding-top: 30px;">
        <input  type="hidden" id="id" value="${user.id}">
	        <table  align="center" style="font-size: 12px;">
				<tr><td>旧密码:</td><td><input type="text" id="oldPassword" /></td></tr>
				<tr><td>新密码:</td><td><input type="text"  id="password"/></td></tr>
				<tr><td>确认新密码:</td><td><input type="text"  id="password2"/></td></tr>
				<tr><td><input id="add" type="button" onclick="modifyPassword()" value="修改"/></td><td></td></tr>
		    </table>
      </div>
  </body>
</html>
